﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            //九九乘法
            for(int i =1;i<10;i++)
            {
                for (int j = 1; j <= i; j++)
                {
                    Console.Write("{0}x{1}={2}"+"\t",i,j,i*j);
                }
                Console.WriteLine();
            }

            //菱形
            for (int i = 1; i <= 3; i++)
            {
                for (int j = 1; j <= 3 - i; j++)
                {
                    Console.Write(" ");
                }
                for (int k = 1; k <= 2 * i - 1; k++)
                {
                    Console.Write("*");                
                }
                Console.WriteLine();
            }
            for (int i = 2; i >= 1; i--) 
            {
              for (int j= 1;j<=3-i;j++)
              {
                Console.Write(" ");
              }
                 for (int k = 1; k <= 2 * i - 1; k++)
                {
                    Console.Write("*");                
                }
                Console.WriteLine();
            }
            
        }
    }
}
